//
//  AccountDetailViewController.h
//  PlayBall
//
//  Created by Edward Zhang on 12-5-8.
//  Copyright (c) 2012年 __MyCompanyName__. All rights reserved.
//

#import "JddBaseViewController.h"
#import "JddQueryAccountDetailOperation.h"

@interface AccountDetailItem : NSObject

@end


enum {
    DATE_SCOPE_TODAY = 0,
    DATE_SCOPE_LATEST_WEEK,
    DATE_SCOPE_LATEST_MONTH,
    DATE_SCOPE_LATEST_THREE_MONTH
    };

@interface JddAccountDetailViewController : JddBaseViewController<UITableViewDelegate, UITableViewDataSource, UIActionSheetDelegate, QueryAccountDetailOperationDelegate>{
@private
    NSInteger dateScope;
    NSInteger pageNo;
    NSInteger pageSize;
    NSInteger type;
    BOOL     hasPrev;
    BOOL     hasNext;
}

SHARED_VIEW_CONTROLLER_DECLARE(JddAccountDetailViewController);

@property (strong, nonatomic) IBOutlet UILabel *dateLabel;
@property (strong, nonatomic) IBOutlet UITableView *ListTable;
@property (strong, nonatomic) IBOutlet UIButton *prev;
@property (strong, nonatomic) IBOutlet UILabel *tipLable;
@property (strong, nonatomic) IBOutlet UILabel *typeLable;
@property (strong, nonatomic) IBOutlet UIButton *next;
@property (strong, nonatomic) IBOutlet UISegmentedControl *selecttype;
@property NSMutableArray *cellvalue;


- (IBAction)selectDateButtonClicked:(id)sender;
-(IBAction)selectType:(UISegmentedControl*)Seg;

-(IBAction)selectPrev:(id)sender;
-(IBAction)selectNext:(id)sender;

- (void)startQueryOperation;
-(void)destoryView;

@end
